const { DataTypes } = require("sequelize");
const sequelize = require("../../config/sequelize");
const BlogCategory = sequelize.define("blog_category", {
    /**
     * 主键
    */
    id: {
       type: DataTypes.INTEGER,
       allowNull: false,
       primaryKey: true,
       autoIncrement: true,
    },
    /**
     * 
     */
    uid: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    name: {
        type: DataTypes.STRING,
    },
    /**
     * 
     */
    pid: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    cnt: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    status: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    sort: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    icon: {
        type: DataTypes.STRING,
    },
});
module.exports = BlogCategory;